<!DOCTYPE html>
<head xmlns:v-bind="http://www.w3.org/1999/xhtml" >
    <meta charset="UTF-8">
    <title>demo11事件处理</title>
  <script src="./js/vue.min.js"></script>

</head>

<body>
   <div id="app">
     <button v-on:click="counter += 1">增加1</button>
     <p>这个按钮被点击了{{counter}}</p>
   </div>

</body>

<script type="application/javascript">
  var vm = new Vue({
    el: "#app",
    data: {
      counter: 0
    }
  });

</script>
</html>
